//
//  DataOfFMCollect.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfFMCollect.h"
#import "FavoriteOfDataFMCollect.h"

@implementation DataOfFMCollect
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"favorite"]) {
        NSMutableArray<FavoriteOfDataFMCollect *> *mArrayOfFavoriteOfDataFMCollect = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FavoriteOfDataFMCollect *favoriteOfDataFMCollect = [FavoriteOfDataFMCollect modelDic:dic];
            [mArrayOfFavoriteOfDataFMCollect addObject:favoriteOfDataFMCollect];
        }
        _favorite = mArrayOfFavoriteOfDataFMCollect;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"favorite" : [FavoriteOfDataFMCollect class]};
}

@end
